import { instance as request } from "../utils/request";

export const addrole = (data: any) => {
    return request({
      url: `/addrole`,
      method: "post",
      data,
    });
  };
  export const rolelist = () => {
    return request({
      url: `/rolelist`,
      method: "get",
    });
  };
  
  export const delrole = (data: any) => {
    return request({
      url: `/delrole`,
      method: "post",
      data,
    });
  };
  export const getrole = () => {
    return request({
      url: `/getrole`,
      method: "post",
    });
  };
  
  
  
  
  export const putrole = (data: any) => {
    return request({
      url: `/putrole`,
      method: "post",
      data,
    });
  };
  